{extend name="public:base" /}
{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">

                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <select name="is_read" class="form-control form-control-lg">
                                    <option value="0">请选择阅读状态</option>
                                    <option value="1">未阅读</option>
                                    <option value="2">已阅读</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户姓名</th>
                                <th>用户电话</th>
                                <th>类型</th>
                                <th>阅读状态</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.type == 1 ? '建议' : '投诉'}</td>
                                <td>{$vo.is_read == 1 ? '未阅读' : '已阅读'}</td>
                                <td>{:timeFormat($vo.create_time)}</td>
                                <td>
                                <a href="{:url('doFeedback', ['id' => $vo.id])}" class="btn btn-white btn-sm">
                                    <i class="iconfont icon-edit"></i> 详情
                                </a>
                            </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

{/block}
